"""
@作者 = "陈诗"
@email = 3168157154@qq.com
@creative_time = 2025/10/27 19:59
"""
from HouseItem import HouseItem
from House import House

# 实参
house = House("俩室一厅", 60)
bed = HouseItem("席梦思", 4)
chest = HouseItem("衣柜", 2)
table = HouseItem("餐桌", 2)
# 调用
house.add_item(bed)
house.add_item(chest)
house.add_item(table)

print(house)  # 触发魔术__str__
